Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

bpo-37999: No longer use __int__ in implicit integer conversions.#15636

Merged
serhiy-storchaka merged 6 commits intopython:masterfrom
serhiy-storchaka:int-implicit-lossless
May 26, 2020
Merged

bpo-37999: No longer use __int__ in implicit integer conversions.#15636
serhiy-storchaka merged 6 commits intopython:masterfrom
serhiy-storchaka:int-implicit-lossless

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Sep 1, 2019

Only __index__ should be used to make integer conversions lossless.

https://bugs.python.org/issue37999

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants